import { useLocation } from "react-router-dom";
import qs from "query-string";

type Props = {};

export default function CateEdit({}: Props) {
  const location = useLocation();
  console.log(location);
  let query = qs.parse(location.search);
  console.log(query);

  return (
    <div>
      编程式导航传递的search参数,{query.id}--{query.name}
    </div>
  );
}
